﻿using CleanArchitecture.Infrastructure.Entities.Business;
using CleanArchitecture.Infrastructure.Models.Business.Columns;
using System.Collections.Generic;

namespace CleanArchitecture.Infrastructure.Interfaces.Business
{
    public interface IColumnService
    {
        IList<ColumnItemModel> GetColumnList();
        IList<ColumnItemModel> GetColumnListByRoleIds(int[] roleIds);
        Column GetColumnById(int cid);
        void UpdateColumn(Column entity);
        void InsertColumn(Column entity);
        void DeleteColumn(Column entity);
        IList<AdminRoleBusColumnMapping> GetAdminRoleColumnMappingsByRoleIds(int[] roleIds);
        void InsertAdminRoleColumnAuthorize(IList<AdminRoleBusColumnMapping> mappings);
        void UpdateAdminRoleColumnAuthorize(IList<AdminRoleBusColumnMapping> mappings);
    }
}
